import request from "@/axios";
import {dictDictUrl, dictItemUrl} from "@/config/env";

const loadDicDataByDictCode = (dictCode) => {
    return request({
            url: dictItemUrl,
            params: {dictCode: dictCode},
            method: 'get',
        }
    )
}
const loadDicTypes = (dictCode) => {
    return request({
            url: dictDictUrl,
            method: 'get',
        }
    )
}
const baseCommonApi = {
    loadDicDataByDictCode,
}
export default baseCommonApi